package com.education.model;

import java.io.Serializable;
import java.util.Date;

import com.education.util.DateUtil;

/**
 * 异动表
 *
 * @author 刘帅
 */
public class TransactionModel implements Serializable {

    /**
     *
     */
    private static final long serialVersionUID = 1L;


    /**
     * 证明材料(增加郭伟)
     */
    private String transactionTitle;

    /**
     * 证明材料路径(增加郭伟)
     */

    private String transactionPath;


    /**
     * 异动编号
     */
    private int transactionId;

    /**
     * 申请主题
     */
    private String transactionRequest;

    /**
     * 申请原因
     */
    private String transactionText;

    /**
     * 申请时间
     */
    private Date transactionApplyDate;

    /**
     * 申请时间的字符串
     */
    private String transactionApplyDateStr;
    /**
     * 申请时长
     */
    private String transactionLong;

    /**
     * 现状
     */
    private String transactionCurrState;

    /**
     * 审核结果
     */
    private String transactionResState;

    /**
     * 删除状态
     */
    private int transactionDelete;
    /**
     * 学生表泛型
     */
    private StudentModel student;
    /**
     * 学生编号
     */
    private int studentId;
    /**
     * 学生姓名
     */
    private String studentName;
    /**
     * 性别
     */
    private String studentSex;
    /**
     * 开始时间
     */
    private Date transactionStart;

    /**
     * 开始时间的字符串
     */
    private String transactionStartStr;

    public int getTransactionId() {
        return transactionId;
    }

    public void setTransactionId(int transactionId) {
        this.transactionId = transactionId;
    }

    public String getTransactionRequest() {
        return transactionRequest;
    }

    public void setTransactionRequest(String transactionRequest) {
        this.transactionRequest = transactionRequest;
    }

    public String getTransactionText() {
        return transactionText;
    }

    public void setTransactionText(String transactionText) {
        this.transactionText = transactionText;
    }

    public Date getTransactionApplyDate() {
        return transactionApplyDate;
    }

    /**
     * 申请时间
     * @param transactionApplyDate
     */
    public void setTransactionApplyDate(Date transactionApplyDate) {
        this.transactionApplyDate = transactionApplyDate;
        this.transactionApplyDateStr=DateUtil.formatDate(transactionApplyDate,"yyyy-MM-dd");
    }

    public String getTransactionApplyDateStr() {
        return transactionApplyDateStr;
    }

    public void setTransactionApplyDateStr(String transactionApplyDateStr) {
        this.transactionApplyDateStr = transactionApplyDateStr;

    }

    public String getTransactionLong() {
        return transactionLong;
    }

    public void setTransactionLong(String transactionLong) {
        this.transactionLong = transactionLong;
    }

    public String getTransactionCurrState() {
        return transactionCurrState;
    }

    public void setTransactionCurrState(String transactionCurrState) {
        this.transactionCurrState = transactionCurrState;
    }

    public String getTransactionResState() {
        return transactionResState;
    }

    public void setTransactionResState(String transactionResState) {
        this.transactionResState = transactionResState;
    }

    public int getTransactionDelete() {
        return transactionDelete;
    }

    public void setTransactionDelete(int transactionDelete) {
        this.transactionDelete = transactionDelete;
    }

    public StudentModel getStudent() {
        return student;
    }

    public void setStudent(StudentModel student) {
        this.student = student;
    }

    public int getStudentId() {
        return studentId;
    }

    public void setStudentId(int studentId) {
        this.studentId = studentId;
    }

    public String getStudentName() {
        return studentName;
    }

    public void setStudentName(String studentName) {
        this.studentName = studentName;
    }

    public String getStudentSex() {
        return studentSex;
    }

    public void setStudentSex(String studentSex) {
        this.studentSex = studentSex;
    }

    public Date getTransactionStart() {
        return transactionStart;
    }

    /**
     * 开始时间
     * @param transactionStart
     */
    public void setTransactionStart(Date transactionStart) {
        this.transactionStart = transactionStart;
        this.transactionStartStr=DateUtil.formatDate(transactionStart,"yyyy-MM-dd");
    }

    public String getTransactionStartStr() {
        return transactionStartStr;
    }

    public void setTransactionStartStr(String transactionStartStr) {
        this.transactionStartStr = transactionStartStr;
    }


    public String getTransactionTitle() {
        return transactionTitle;
    }

    public void setTransactionTitle(String transactionTitle) {
        this.transactionTitle = transactionTitle;
    }

    public String getTransactionPath() {
        return transactionPath;
    }

    public void setTransactionPath(String transactionPath) {
        this.transactionPath = transactionPath;
    }
}
